package com.qmctl.rest.bean.deliveryorderconfirm;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

import com.qmctl.rest.entity.EntryOrderLines;

@XmlRootElement(name="orderLine")
public class OrderLineClazz{

 public OrderLineClazz(){
 
 }
 private String outBizCode;
 private String orderLineNo;
 private String itemCode;
 private String itemId;
 private String itemName;
 private String inventoryType;
 private long actualQty;
 private String batchCode;
 private String productDate;
 private String expireDate;
 private String produceCode;
 @XmlElementWrapper(name="batchs")
 @XmlElement(name="batch")
 private List<BatchClazz> batchLst;
   public String getOrderLineNo(){
    return orderLineNo;
   }
   public void setOrderLineNo(String sOrderLineNo){
     orderLineNo = sOrderLineNo;
   }
   public String getItemCode(){
     return itemCode;
   }
   public void setItemCode(String sItemCode){
     itemCode = sItemCode;
   }
   public String getItemId(){
    return itemId;
   }
   public void setItemId(String sItemId){
     itemId = sItemId;
   }
  public String getItemName(){
    return itemName;
  }
  public void setItemName(String sItemName){
    itemName = sItemName;
  }
  public long getActualQty(){
    return actualQty;
  }
  public void setActualQty(long iActualQty){
    actualQty = iActualQty;
  }
  public String getBatchCode(){
    return batchCode;
  }
  public void setBatchCode(String sBatchCode){
    batchCode = sBatchCode;
  }
  public String getProductDate(){
    return productDate;
  }
  public void setProductDate(String sProductDate){
    productDate = sProductDate;
  }
  public String getExpireDate(){
    return expireDate;
  }
  public void setExpireDate(String sExpireDate){
    expireDate = sExpireDate;
  }
  public String getProduceCode(){
    return produceCode;
  }
  public void setProduceCode(String sProduceCode){
    produceCode = sProduceCode;
  }

  public void setBatchs(List<BatchClazz> clazzBatchs){
	batchLst = clazzBatchs;
  }
   public OrderLineClazz(EntryOrderLines beanClazz){
  
    setOutBizCode(beanClazz.getOutBizCode());
    orderLineNo = beanClazz.getOrderLineNo();
    itemCode = beanClazz.getItemCode();
    itemId = beanClazz.getItemId();
    itemName = beanClazz.getItemName();
    setInventoryType(beanClazz.getInventoryType());
    actualQty = beanClazz.getActualQty();
    batchCode = beanClazz.getBatchCode();
    productDate = beanClazz.getProductDate();
    expireDate = beanClazz.getExpireDate();
    produceCode = beanClazz.getProduceCode();
    //batchs = beanClazz.getBatchs();
  }
public String getOutBizCode() {
	return outBizCode;
}
public void setOutBizCode(String outBizCode) {
	this.outBizCode = outBizCode;
}
public String getInventoryType() {
	return inventoryType;
}
public void setInventoryType(String inventoryType) {
	this.inventoryType = inventoryType;
}
}
